package com.heima.model.user.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * 收藏
 */
@Data
@TableName("ap_collection")
public class ApCollection {

    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    @TableField("entry_id")
    private Integer entryId;//用户id

    @TableField("article_id")
    private Long articleId;

    @TableField("type")//点赞内容类型 0文章             1动态
    private Short type;

    @TableField("collection_time")
    private Date collectionTime;//创建时间

    @TableField("published_time")
    private Date publishedTime;//发布时间



}
